function createTime(ctimeMs) {
    var date1 = new Date (ctimeMs);
    var year = date1.getFullYear();
    var month = date1.getMonth() + 1;
    var day = date1.getDate();
    var hour = date1.getHours();
    var minute = date1.getMinutes();

    console.log(year + "-" + month + "-" + day + "-" + hour + "-" + minute); 
}
const fs = require("fs");
const path = require("path");

var filePath = path.join(__dirname,"/1.txt");

var fileObj = fs.statSync(filePath);
var ctimeMs = fileObj.ctimeMs;
createTime(ctimeMs);